




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/15/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.yfoutsourcecontarct.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.yfoutsourcecontarct.entity.YfOutsourceContract;
import com.application.yfoutsourcecontarct.struts.form.YfOutsourceContractForm;
import com.application.yfoutsourcecontarct.dao.YfOutsourceContractDAO;
 /**
 * 
 * Description:YfOutsourceContractService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060  <br />
 * 
 * History: <br />
 * 
 * 02/15/2012 
 * 
 */
public class YfOutsourceContractService extends BaseService
{
	private YfOutsourceContractDAO yfOutsourceContractDAO;

	public YfOutsourceContractDAO getYfOutsourceContractDAO() {
		return this.yfOutsourceContractDAO;
	}

	public void setYfOutsourceContractDAO(YfOutsourceContractDAO yfOutsourceContractDAO) {
		this.yfOutsourceContractDAO = yfOutsourceContractDAO;
	}
        

        public YfOutsourceContract getYfOutsourceContract(YfOutsourceContract yfOutsourceContract) {
		return (YfOutsourceContract) this.getBaseDao().queryByPk(yfOutsourceContract, yfOutsourceContract.getId());
	}
	
	public Integer getAllCountYfOutsourceContract(YfOutsourceContractForm yfOutsourceContractForm){
		return this.yfOutsourceContractDAO.getAllCountYfOutsourceContract(yfOutsourceContractForm);
	}
	
	public List<YfOutsourceContract> searchYfOutsourceContract(YfOutsourceContractForm yfOutsourceContractForm, PageBean pageBean) throws Exception {
		List<YfOutsourceContract> yfOutsourceContractList = (List) this.yfOutsourceContractDAO.searchYfOutsourceContract(yfOutsourceContractForm, pageBean);
		return yfOutsourceContractList;
	}
        
    public void deleteYfOutsourceContracts(YfOutsourceContractForm yfOutsourceContractForm){
	   this.yfOutsourceContractDAO.deleteYfOutsourceContracts(yfOutsourceContractForm);	 
	}
        public synchronized String getMaxOutNo(String pix ){
        	 return this.yfOutsourceContractDAO.getMaxOutNo(pix);
        }
}
